import request from '@/request/request.js'

// 评论列表
export const comment_list = (params) => {
	return request({
		url: "/api/common/comment_list",
		method: "post",
		data: params,
	})
}

// 提交评论
export const comment = (params) => {
	return request({
		url: "/api/common/comment",
		method: "post",
		data: params,
	})
}
// 删除活动
export const activityDel = (params) => {
	return request({
		url: "/api/activity/del",
		method: "post",
		data: params,
	})
}
// 删除培训
export const trainDel = (params) => {
	return request({
		url: "/api/train/del",
		method: "post",
		data: params,
	})
}
// 删除场馆
export const venueDel = (params) => {
	return request({
		url: "/api/venue/del",
		method: "post",
		data: params,
	})
}
// 收藏
export const collect = (params) => {
	return request({
		url: "/api/common/collect",
		method: "post",
		data: params,
	})
}

// 点赞
export const like = (params) => {
	return request({
		url: "/api/common/like",
		method: "post",
		data: params,
	})
}

// 获取轮播
export const banner = (params) => {
	return request({
		url: "/api/config/banner",
		method: "post",
		data: params,
	})
}

// 获取享活动列表
export const actList = (params) => {
	return request({
		url: "/api/activity/list",
		method: "post",
		data: params,
	})
}

// 获取游林芝列表
export const visitList = (params) => {
	return request({
		url: "/api/visit/list",
		method: "post",
		data: params,
	})
}

// 获取享活动详情
export const actDetail = (params) => {
	return request({
		url: "/api/activity/detail",
		method: "post",
		data: params,
	})
}

// 获取游林芝详情
export const visitDetail = (params) => {
	return request({
		url: "/api/visit/detail",
		method: "post",
		data: params,
	})
}

// 获取享活动类型
export const actCategory = (params) => {
	return request({
		url: "/api/activity/category",
		method: "post",
		data: params,
	})
}

// 获取平非遗类型
export const heritageCategory = (params) => {
	return request({
		url: "/api/heritage/category",
		method: "get",
		data: params,
	})
}

// 获取游林芝类型
export const visitCategory = (params) => {
	return request({
		url: "/api/visit/category",
		method: "post",
		data: params,
	})
}

// 享活动报名
export const actApplication = (params) => {
	return request({
		url: "/api/activity/application",
		method: "post",
		data: params,
	})
}

// 学才艺报名
export const trainApplication = (params) => {
	return request({
		url: "/api/train/application",
		method: "post",
		data: params,
	})
}

// 定场馆报名
export const venueApplication = (params) => {
	return request({
		url: "/api/venue/application",
		method: "post",
		data: params,
	})
}
// 获取汇资讯类型
export const newsCategory = (params) => {
	return request({
		url: "/api/news/category",
		method: "post",
		data: params,
	})
}

// 获取汇资讯列表
export const newsList = (params) => {
	return request({
		url: "/api/news/list",
		method: "post",
		data: params,
	})
}


// 获取汇资讯详情
export const newsDetail = (params) => {
	return request({
		url: "/api/news/detail",
		method: "post",
		data: params,
	})
}

// 获取学才艺类型
export const trainCategory = (params) => {
	return request({
		url: "/api/train/category",
		method: "post",
		data: params,
	})
}

// 获取学才艺列表
export const trainList = (params) => {
	return request({
		url: "/api/train/list",
		method: "post",
		data: params,
	})
}

// 获取学才艺详情
export const trainDetail = (params) => {
	return request({
		url: "/api/train/detail",
		method: "post",
		data: params,
	})
}


// 获取订场馆类型
export const venueCategory = (params) => {
	return request({
		url: "/api/venue/category",
		method: "get",
		data: params,
	})
}

// 获取订场馆列表
export const venueList = (params) => {
	return request({
		url: "/api/venue/list",
		method: "post",
		data: params,
	})
}

// 场馆详情
export const venueDetail = (params) => {
	return request({
		url: "/api/venue/detail",
		method: "post",
		data: params,
	})
}

// 修改密码
export const userPassword = (params) => {
	return request({
		url: "/api/user/password",
		method: "post",
		data: params,
	})
}

// 场地详情
export const venueSite = (params) => {
	return request({
		url: "/api/venue/site",
		method: "post",
		data: params,
	})
}


// 获取读好书类型
export const bookCategory = (params) => {
	return request({
		url: "/api/book/category",
		method: "post",
		data: params,
	})
}

// 获取读好书详情
export const bookDetail = (params) => {
	return request({
		url: "/api/book/detail",
		method: "post",
		data: params,
	})
}

// 获取读好书列表
export const bookHome = (params) => {
	return request({
		url: "/api/book/home",
		method: "post",
		data: params,
	})
}

// 获取读好书列表
export const bookList = (params) => {
	return request({
		url: "/api/book/list",
		method: "post",
		data: params,
	})
}

// 获取书籍目录
export const bookDirectory = (params) => {
	return request({
		url: "/api/book/directory",
		method: "post",
		data: params,
	})
}

// 获取章节内容
export const bookContent = (params) => {
	return request({
		url: `/api/book/content?id=${params}`,
		method: "get",
	})
}

// 获取赶大集列表
export const marketList = (params) => {
	return request({
		url: "/api/market/list",
		method: "post",
		data: params,
	})
}

// 获取赶大集分类
export const marketCategory = (params) => {
	return request({
		url: "/api/market/category",
		method: "post",
		data: params,
	})
}

// 获取赶大集分类
export const marketDetail = (params) => {
	return request({
		url: "/api/market/detail",
		method: "post",
		data: params,
	})
}

// 获取直播类型
export const videoCategory = (params) => {
	return request({
		url: "/api/vedio/category",
		method: "post",
		data: params,
	})
}

// 获取直播列表
export const videoList = (params) => {
	return request({
		url: "/api/vedio/list",
		method: "post",
		data: params,
	})
}

// 获取品非遗列表
export const heritageList = (params) => {
	return request({
		url: "/api/heritage/list",
		method: "post",
		data: params,
	})
}

// 获取品非遗详情
export const heritageDetail = (params) => {
	return request({
		url: "/api/heritage/detail",
		method: "post",
		data: params,
	})
}

// 获取赏精品详情
export const vedioDetail = (params) => {
	return request({
		url: "/api/vedio/detail",
		method: "post",
		data: params,
	})
}

// 获取首页园区节庆横幅列表
export const homeBanner = (params) => {
	return request({
		url: "/api/qsy/index/bannerList",
		method: "post",
		data: params,
	})
}

// 获取园区节庆详情
export const homeBannerDetail = (params) => {
	return request({
		url: "/api/qsy/index/bannerDetails",
		method: "post",
		data: params,
	})
}

// 获取活动类型（娱乐、主题）
export const homeActivityType = (params) => {
	return request({
		url: "/api/qsy/activity/typeList",
		method: "post",
		data: params,
	})
}

// 获取活动列表（娱乐、主题）
export const homeActivityList = (params) => {
	return request({
		url: "/api/qsy/activity/list",
		method: "post",
		data: params,
	})
}

// 获取活娱乐动详情
export const homeProjectInfo = (params) => {
	return request({
		url: "/api/qsy/activity/projectDetails",
		method: "post",
		data: params,
	})
}

// 获取主题活动详情
export const homeThemeInfo = (params) => {
	return request({
		url: "/api/qsy/activity/subjectDetails",
		method: "post",
		data: params,
	})
}

// 获取动态列表
export const homeTrendList = (params) => {
	return request({
		url: "/api/qsy/activity/informationList",
		method: "post",
		data: params,
	})
}

// 获取动态详情
export const homeTrendDetail = (params) => {
	return request({
		url: "/api/qsy/activity/informationDetails",
		method: "post",
		data: params,
	})
}

// 获取吃喝玩乐轮播图
export const homePartyBanner = (params) => {
	return request({
		url: "/api/qsy/party/bannerList",
		method: "post",
		data: params,
	})
}

// 获取吃喝玩乐类型
export const homePartyType = (params) => {
	return request({
		url: "/api/qsy/party/TypeList",
		method: "post",
		data: params,
	})
}

// 获取吃喝玩乐列表
export const homePartyList = (params) => {
	return request({
		url: "/api/qsy/party/list",
		method: "post",
		data: params,
	})
}

// 获取吃喝玩乐详情
export const homePartyDetail = (params) => {
	return request({
		url: "/api/qsy/party/partyDetails",
		method: "post",
		data: params,
	})
}

// 获取活动场次信息
export const homeOrderTicket = (params) => {
	return request({
		url: "/api/qsy/order/ticketList",
		method: "post",
		data: params,
	})
}

// 活动创建订单
export const homeAddOrder = (params) => {
	return request({
		url: "/api/qsy/order/addOrder",
		method: "post",
		data: params,
	})
}